//
//  OMAnalyzer.m
//  OMENGO
//
//  Created by 梁尚嘉 on 2017/1/19.
//  Copyright © 2017年 Kamfat. All rights reserved.
//

#import "OMAnalyzer.h"
#import "BaiduMobStat.h"
#import "MainConfigure.h"

#define BDMobStatInstance [BaiduMobStat defaultStat]

@implementation OMAnalyzer
+ (void)startAnalyze {
    BDMobStatInstance.shortAppVersion = [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleShortVersionString"];
    [BDMobStatInstance startWithAppId:BAIDU_ANALYZE_APPKEY];
#ifdef DEBUG
    BDMobStatInstance.enableDebugOn = NO;
#endif

}


+ (void)userLoginCollect
{

}


+ (void)userLogoutCollect
{
}


+ (void)pageAppearCollect:(NSString *)name
{
    [BDMobStatInstance pageviewStartWithName:name];
}

+ (void)pageDisappearCollect:(NSString *)name
{
    [BDMobStatInstance pageviewEndWithName:name];
}
@end
